package com.bacon.gmall.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2021-01-03 19:17
 * @description:
 */
@Controller
public class LoginController {

    @GetMapping("/login.html")
    public String toLogin(String originUrl, Model model){

        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
